package com.a;

/**
 * @author LW
 * @2020/9/17 14:48
 */
public class task2 {
    public static void main(String[] args) {
        for (int i = 1; i <= 9; i++) {//循环1~9竖列
            for (int j =1; j <= i; j++) {//横列循环次数随着i的增长而增长
                System.out.print(" "+i+"*"+j+"="+(i*j));//乘法口诀打印
            }
            System.out.println();//换行打印
        }
    }
}
